﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Repository.Models {
	public enum EnumQuesitonType {
		SingleChoice,
		MultiChoice,
		OpenEnded
	}

	/// <summary>
	/// 问题基类
	/// </summary>
	public class Question {
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public Guid Id { get; set; }
		public EnumQuesitonType Type { get; set; }
		public int Index { get; set; }
		public string Description { get; set; } = "QuestionDescription";
		public Guid? SurveyId { get; set; }
		public ICollection<Choice> Choices { get; set; }
	}
}
